package com.zhima.config;

import com.zhima.MybatisEmcGenerator;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
@EnableConfigurationProperties(MybatisEmcProperties.class)
public class MybatisEmcAutoConfiguration {
    @Bean
    public MybatisEmcGenerator mybatisEmcGenerator(MybatisEmcProperties mybatisEmcProperties) {
        return new MybatisEmcGenerator(mybatisEmcProperties);
    }
}
